﻿using IBLL;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class StateBLL : IStateBLL
    {
        public StateBLL(IMemberDAL<StateModel>dal)
        {
            Dal = dal;
        }

        public IMemberDAL<StateModel> Dal { get; }

        public Task<int> AddState(StateModel state)
        {
            return Dal.AddAsync(state);
        }

        public List<StateModel> GetStates()
        {
            return Dal.GetAllMember().ToList();
        }
    }
}
